<!DOCTYPE HTML>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
  <title>spring-boot模版渲染</title>
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
</head>
<body>
 <!-- div标签不存在-->
 <!-- <div th:replace="@{/commons/footer}::companyInfo" th:with="itemId=2,subId=20" />-->
  <!--div标签存在-->
<!--  <div th:include="@{/commons/footer}::companyInfo" th:with="itemId=2,subId=20" />-->
  <hr/>
<table>
  <tr>
    <td>no</td>
    <td>key</td>
    <td>mid</td>
    <td>姓名</td>
    <td>年龄</td>
    <td>偶数</td>
    <td>奇数</td>
  </tr>
  判断key是否存在
  <p th:text="${#maps.containsKey(allMembers,'jml0')}" />
  通过key获取map中具体value值
  <p th:text="${allMembers['jml1'].name}"/>
  <!--memberStat就是前面的索引-->
  <tr th:each="memberEntry,memberStat:${allMembers}">
    <td th:text="${memberStat.index+1}"/>
    <td th:text="${memberEntry.key}"/>
    <td th:text="${memberEntry.value.mid}"/>
    <td th:text="${memberEntry.value.name}"/>
    <td th:text="${memberEntry.value.age}"/>
    <td th:text="${memberStat.even}"/>
    <td th:text="${memberStat.odd}"/>
  </tr>

</table>


</body>
</html>